package cn.kgc.service;

import cn.kgc.pojo.Role;
import cn.kgc.pojo.User;

import java.util.List;

public interface UserService {

    public String userLogin(String userCode, String userPassword);

    public List<User> queryAll(String userName, int userRole, int beginIndex, int pageSize);

    public String checkUserCode(String userCode);

    public int totalRecode(String userName, int userRole);

    List<Role> showRoleNameInfo();

    List<User> showByIdUserInfo(String id);

    int updateByIdUserInfo(User user);

}
